<template>
	<div class="list">

		<Category title="美食">
			<a slot="s2" href="http://www.atguigu.com">更多美食</a>
			<img slot="s1" src="https://s3.ax1x.com/2021/01/16/srJlq0.jpg" alt="atguigu">
		</Category>

		<Category title="游戏" >
			<ul slot="s1">
				<li v-for="(g,index) in games" :key="index">{{g}}</li>
			</ul>
			<div slot="s2" class="bottom-list">
				<a href="http://www.atguigu.com">单机游戏</a>
				<a href="http://www.atguigu.com">网络游戏</a>
			</div>
		</Category>

		<Category title="电影">
			<video slot="s1" controls src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4"></video>
			<div slot="s2" class="bottom-list">
				<a href="http://www.atguigu.com">经典</a>
				<a href="http://www.atguigu.com">热门</a>
				<a href="http://www.atguigu.com">推荐</a>
			</div>
		</Category>
	</div>
</template>

<script>
	import Category from './components/Category'
	export default {
		name:'App',
		components:{Category},
		data() {
			return {
				games:['红色警戒','穿越火线','劲舞团','超级玛丽'],
			}
		},
	}
</script>

<style>
	.list,.bottom-list{
		display: flex;
		justify-content: space-around;
	}
</style>